import http from "../request.js";

//首页轮播数据
function bannerAds() {
	return http({
		url: '/lejuClient/home/bannerAds'
	})
}
//获取分类数据
function findCategory(id) {
	return http({
		url: `/lejuClient/productCategory/findCategory/${id}`
	})
}
//获取限时活动数据，
function recommendList(){	// 限时活动列表
	return http({
		url:"/lejuClient/home/recommendList",
	})
}
//热门推荐数据，数据不准
function saleMostProducts() {
	return http({
		url: '/lejuClient/home/saleMostProducts'
	})
}
//新品推荐,数据还行
function lejuLatestProducts() {
	return http({
		url: '/lejuClient/home/lejuLatestProducts'
	})
}
//猜你喜欢，我是猜不出来了。。
function latestProducts(start, limit) {
	return http({
		url: `/lejuClient/home/latestProducts/${start}/${limit}`
	})
}
export {
	bannerAds,
	findCategory,
	recommendList,
	saleMostProducts,
	lejuLatestProducts,
	latestProducts
}
